﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BLL.Concrete;
using System.Diagnostics;

namespace Arrb.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        HomeGaleriaBll galeriaBll;
        public HomeController()
        {
            galeriaBll = new HomeGaleriaBll();
        }

        public ActionResult Index()
        {
            /*if (DateTime.Now.Year > 2011)
                return null;
            */
            var imagenes = galeriaBll.GetGaleria().OrderBy(u=>u.Orden).ToList();
            ViewBag.galeria = imagenes;
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
